//获取用户信息
function getUserInfo(){
    var userString = Cookies.get('user') ;
    if(userString){
        var user = JSON.parse(userString);
        for(p in user){
            if(typeof(p)=='string'){
                user[p] = decodeURIComponent(user[p]);
            }
        }
        return user;
    }
    return null;
}